 <script th:inline="javascript">
/*<![CDATA[*/

    function del(event,element){
    	event.preventDefault();
      	bootbox.confirm("确定删除该项吗？", function(result) {
    	if(result){
    		var _id = $(element).attr("href").split("_")[0];;
    		var _page=$(element).attr("href").split("_")[1];
    		var _viewState = $(element).attr("href").split('_')[2];
    		BOSS.remoteCall('advertisement/adPosition/delete',$('#div_adPosition_list'),{id:_id,page:_page,viewState:_viewState});   //cateInfo:'cateInfo'
    		
    	}
    	}); 
    }
	
/*]]>*/
</script>
<table layout:fragment="categorys_table"  class="table table-striped table-bordered  table-advance table-hover" id="category_grid">
	<thead>
		<tr>
			<th>ID</th>
			<th>广告位名称</th>
			<th>广告位唯一标识符</th>
			<th>所属页面</th>
			<th>位置宽度</th>
			<th>位置高度</th>
			<th>广告位描述</th>
			<th>操作</th>
		</tr>
	</thead>	
	<tbody>
		<tr class="odd gradeX" th:each="data : ${adPositionList}">
			<td th:text="${data.id}">					
			</td>
			
			   <td >
			     <a th:href="@{'/advertisement/adsList/index/'+${data.id}}">
				    <span th:text="${data.adPositionName}"></span>
				  </a>
			   </td> 
			   
	
			 	
			<td th:text="${data.adPositionSymbol}">
			</td>
			
			<td th:text="${data.belongPage.description}">
			</td>
			
			<td th:text="${data.adPositionWidth}">
			</td>
			
			<td th:text="${data.adPositionHeight}">
			</td>
			
			<td th:text="${data.Description}">
			</td>
					
			
			<td>
			     <a href="" th:href="@{'/advertisement/adsList/index/'+${data.id}}"  id="edit_link_${data.id}}" name="edit_link_${data.id}}" class="btn default btn-xs purple" ><i class="fa fa-edit"></i>查看</a>|
				 <a href="" th:href="@{'/advertisement/adPosition/edit/'+${data.id}}"  id="edit_link_${data.id}}" name="edit_link_${data.id}}" class="btn default btn-xs purple" ><i class="fa fa-edit"></i>编辑</a>|
				 <a href="#" th:href="${data.id}+'_'+${adPositionList.number}+'_'+${viewState}" class="btn default btn-xs purple" id="del_link_${data.id}}" name="del_link_${data.id}}"  onclick="del(event,this);"><i class="fa fa-minus"></i>移除</a>	
			</td>		 
		</tr>
		
		<tr th:if="${adPositionList.getNumberOfElements()==0}">
		   <td colspan="7" align="center">未查到任何记录，请放大查询条件试试</td>
		</tr>
 	</tbody>
</table>
<div th:include="page_footer" th:with="viewState=${viewState},url=${'/advertisement/adPosition/index'},pageContext=${adPositionList}"></div>

